public class Button {
  float xcor;
  float ycor;
  float len;
  float wid;
  String data;
  boolean chosen = false;

  public Button() {
  }

  public Button(float x, float y, float l, float w) {
    xcor = x;
    ycor = y;
    len = l;
    wid = w;
  }
  
  public Button(float x, float y, float l, float w, String d) {
    xcor = x;
    ycor = y;
    len = l;
    wid = w;
    data = d;
  }
   public boolean isClicked(float x, float y) {
    return (x >= xcor && x <= xcor+len && y >= ycor && y <= ycor+wid);
  }
}

